<template>
  <div>
    <!-- 有些一级路由不需要缓存 -->
    <keep-alive exclude="SearchPage,SearchResult,ArticleDetail,UserEdit">
      <router-view></router-view>
    </keep-alive>
  </div>
</template>
<script>
// import { getAllChannelsAPI } from '@/api'
export default {
  // async created () {
  //   try {
  //     const res = await getAllChannelsAPI()
  //     console.log(res)
  //   } catch (err) {
  //     console.error(err)
  //   }
  // }
}
</script>
<style lang='less' scoped>
</style>
